﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="dateselector.ascx.cs" Inherits="webcon_dateselector" %>
<input id="hidValues" type="hidden" runat="server"/>
  <asp:Panel ID="htmlPanel" runat="server" Visible="true">
  <select id="selYear" runat="server"></select>   
  <select id="selMonth" runat="server"></select>   
  <select id="selDay" runat="server"></select>  
   <script   type="text/javascript">   
  var  <%=selYearID %>_select   =   window.document.getElementById("<%=selYearID %>");   
  var  <%=selMonthID %>_select   =   window.document.getElementById("<%=selMonthID %>");   
  var  <%=selDayID %>_select   =   window.document.getElementById("<%=selDayID %>");   
  new   DateSelector(<%=selYearID %>_select,   <%=selMonthID %>_select   ,<%=selDayID %>_select,   <%=Y %>,   <%=M %>,   <%=D %>);   
  </script> 
  </asp:Panel>
  <asp:Panel ID="aspPanel" runat="server" Visible="false">
      <asp:DropDownList ID="ddYear" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddYear_SelectedIndexChanged">
      </asp:DropDownList>
      <asp:DropDownList ID="ddMonth" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddMonth_SelectedIndexChanged">
      <asp:ListItem Text="1" Value="1"></asp:ListItem>
      <asp:ListItem Text="2" Value="2"></asp:ListItem>
      <asp:ListItem Text="3" Value="3"></asp:ListItem>
      <asp:ListItem Text="4" Value="4"></asp:ListItem>
      <asp:ListItem Text="5" Value="5"></asp:ListItem>
      <asp:ListItem Text="6" Value="6"></asp:ListItem>
      <asp:ListItem Text="7" Value="7"></asp:ListItem>
      <asp:ListItem Text="8" Value="8"></asp:ListItem>
      <asp:ListItem Text="9" Value="9"></asp:ListItem>
      <asp:ListItem Text="10" Value="10"></asp:ListItem>
      <asp:ListItem Text="11" Value="11"></asp:ListItem>
      <asp:ListItem Text="12" Value="12"></asp:ListItem>
      </asp:DropDownList>
      <asp:DropDownList ID="ddDay" runat="server">
      </asp:DropDownList>
  </asp:Panel>